<?php
/* 
* @Author: LDF QQ 47121862
* @Date:   2014-06-03 09:18:54
* @Last Modified by:   LDF QQ 47121862
* @Last Modified time: 2014-06-12 17:58:21
*/
Class IncControl extends Control{
	function __auto(){
		$const=M('config')->all();
		$arr=array();
		foreach ($const as $k => $v) {
			$arr[$v['name']]=$v['val'];
		}
		$this->const=$arr;
	}
	//重写display方法，已改变模板默认路径
	protected function display($tplFile = null, $cacheTime = null, $cachePath = null, $stat = false, $contentType = "text/html", $charset = "", $show = true)
   {
   	$tplFile = C('TPL_PATH').C('TPL_STYLE').'/'.$tplFile;
   	parent::display($tplFile);
	}
}
